package com.example.demo01.controller;

import com.example.demo01.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author liuyuan
 * @Date 2022/7/16 10:50 AM
 * @Version 1.0
 */
@RestController
@RequestMapping("/car")
public class CarController {

    @Autowired
    CarService service;
    @RequestMapping("/add")
    public  void  addCar(Long goodId){
        service.add(goodId);
    }


}
